package com.jdbc.text8;

import java.sql.SQLException;

public interface NewsDao {
    //查看信息
    public void getNewsByTitle();
    //增加信息
    public void addNews(int id, String userName, String password, String email, int userType);

    //删除信息
    public void deleteNews(int id);
    //改变信息
    public void updateNews(int id, String password) throws SQLException;
}
